/**
 * Created by rongyao on 2017/10/19.
 */
var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var commentSchema = new mongoose.Schema({
	comment:String,
	newsId:String,
	commentator:String,
	date:{type:Date,default:Date.now}
});
commentSchema.plugin(mongoosePaginate);

module.exports = mongoose.model('Comment',commentSchema,'comment'); // Model.paginate()